﻿using Domain.Entities;
using MAF.CRUD;
using MAF.UserSecurity;

namespace Business
{
    public class CategorySafe : SafeCRUD<CategoryInfo>
    {
        public CategorySafe(ICRUD<CategoryInfo> svc) : base(svc){ }
    }

    public class ArticleSafe : SafeCRUD<ArticleInfo>
    {
        public ArticleSafe(ICRUD<ArticleInfo> svc) : base(svc) { }
    }

    public class ProductSafe : SafeCRUD<ProductInfo>
    {
        public ProductSafe(ICRUD<ProductInfo> svc) : base(svc) { }
    }

    public class DealerSafe : SafeCRUD<DealerInfo>
    {
        public DealerSafe(ICRUD<DealerInfo> svc) : base(svc) { }
    }

    public class MessageSafe : SafeCRUD<MessageInfo>
    {
        public MessageSafe(ICRUD<MessageInfo> svc) : base(svc) { }

        public override void Add(MessageInfo info)
        {
            _Svc.Add(info);
        }
    }

    //public class UserSafe : SafeCRUD<User>
    //{
    //    public UserSafe(ICRUD<User> svc) : base(svc) { }
    //}
}
